<<<<<<< HEAD
import java.awt.Point;
import java.awt.Color;
import java.util.*;

public class Triangle{
	private Point p1,p2,p3;
	public Triangle(Point p1,Point p2, Point p3){
		if(p1==null){
			p1 = new Point(0,0);
		}
		if(p2==null){
			p2 = new Point(0,0);
		}
		if(p3==null){
			p3 = new Point(0,0);
		}
		this.p1 = p1;
		this.p2 = p2;
		this.p3 = p3;
	}
	public boolean equals(Object obj){
		if(obj == null)
			return false;
		if(obj.getClass()!=Triangle.class){
			return false;
		}
		Triangle otherTriangle = (Triangle) obj;
		return (p1.equals(otherTriangle.p1)&&
			p2.equals(otherTriangle.p2)&&
			p3.equals(otherTriangle.p3));
=======
/**
* @author Saerom Kim <kim79881@gmail.com>
* @version 1.6
* @since 2011-11-09
*/

public class Triangle implements Shape
{
	private int bottom;
	private int height;
	Triangle(int b, int h)
	{
		this.bottom = b;
		this.height = h;
	}
	public int getBottom()
	{
		return bottom;
	}
	public int getHeight()
	{
		return height;
	}
	public int Area()
	{
		return (int)(bottom*height*0.5);
>>>>>>> 3a517df27f7752234a19a59b69da94401c17642e
	}
}
